#include <iostream>

using namespace std;

int main()
{
    int a[5] = {1, 2, 3, 4, 5};
    
    cout << "a = " << a << endl;
    cout << "&a[0] = " << &a[0] << endl;
    cout << "&a[1] = " << &a[1] << endl;
    cout << "&a[2] = " << &a[2] << endl;
    cout << "&a[3] = " << &a[3] << endl;
    cout << "&a[4] = " << &a[4] << endl;

    cout << "\n==============================\n";

    cout << "&a[0] = " << a + 0 << endl;
    cout << "&a[1] = " << a + 1 << endl;
    cout << "&a[2] = " << a + 2 << endl;
    cout << "&a[3] = " << a + 3 << endl;
    cout << "&a[4] = " << a + 4 << endl;

    cout << "\n=============================\n";

    cout << "a[0] = " << *(a + 0) << endl;
    cout << "a[1] = " << *(a + 1) << endl;
    cout << "a[2] = " << *(a + 2) << endl;
    cout << "a[3] = " << *(a + 3) << endl;
    cout << "a[4] = " << *(a + 4) << endl;
    


    cout << "a[0] = " << 0[a] << endl;
    cout << "a[1] = " << 1[a] << endl;
    cout << "a[2] = " << 2[a] << endl;
    cout << "a[3] = " << 3[a] << endl;
    cout << "a[4] = " << 4[a] << endl;


    return 0;
}

